import styles from './index.module.scss'

const EditList = ({items,onClose,changeGander}) => {
  // 抽屉弹框组件中的内容
  return (
    <div className={styles.root}>
      {items.map(item=>(
        <div key={item.value} onClick={()=>changeGander(item.value)} className="list-item">{item.text}</div>
      ))}
      

      <div className="list-item" onClick={onClose}>取消</div>
    </div>
  )
}

export default EditList